package com.wardrobe.soa.api.practitioners;

import com.wardrobe.domain.practitioners.PractitionersShowBean;
import com.wardrobe.mapper.slave.practitioners.PractitionersSlaveMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018/11/30.
 */
@Service
public class PractitionersService {
    @Autowired
    private PractitionersSlaveMapper practitionersSlaveMapper;

    public List<PractitionersShowBean> searchPractitionersByName(String name){
        return practitionersSlaveMapper.selectPractionersByName(name);
    }

    public PractitionersShowBean getPractitionersById(int id){
        return practitionersSlaveMapper.selectPractionersById(id);
    }
}
